/*
 * @ author Junr
 * @ use 购物车
 */
import Request from '../request';
export default {
  // 添加到购物车
  add (params) {
    return Request.post({ url: `/m/carts/add`, params });
  },
  // 购物车列表
  list (params) {
    return Request.post({ url: `/m/carts/list`, params });
  },
  // 删除购物车
  delete (params) {
    return Request.post({ url: `/m/carts/delete`, params });
  },
  // 修改购物车数量
  cartNum (params) {
    return Request.post({ url: `/m/carts/num/alter`, params });
  }
};
